home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / administ / netware / bestnet.doc next >
Text File  |  1996-07-10  |  17KB  |  433 lines

  1. Computer Tyme BestNet * Version 1.6 * Release Date: 09-30-91
  2. Copyright 1990-91 by Marc Perkel * All Rights Reserved
  3.  
  4. Computer Tyme * 411 North Sherman, Suite 300 * Springfield Mo. 65802
  5. (800) 548-5353 Sales * (417) 866-1222 Voice * (417) 866-1665 Data
  6.  
  7. This program sets an environment variable NET to the best network shell
  8. based on the dos version and the presence of either EMS or XMS memory.
  9. You can then load the net shell by putting %NET% in your batch file.
  10. If both EMS and XMS are available, EMS is selected.
  11.  
  12. Usage: BESTNET (/I/X/L)
  13.        BESTNET > NUL  ;This stops BestNet from writing to the screen.
  14.  
  15. /I Ignore XMS and EMS Shells.
  16. /X Selects XMS over EMS where both exist.
  17. /L Includes QEMM LoadHi command if LOADHI.COM is available.
  18.  
  19. BestNet also sets an environment variable NETD that contains the
  20. drive letter of the first network drive. This also can be used in
  21. a batch file to switch to the network drive and log in.
  22.  
  23. A batch file to login might look like this:
  24.  
  25.   IPX
  26.   BESTNET
  27.   %NET%        ;might contain EMSNETX.EXE
  28.   %NETD%       ;might contain F:
  29.   LOGIN
  30.  
  31. Price: $35/Server, $250 Unlimited
  32.  
  33. Setting NET=EMSNETX.EXE
  34. Setting NETD=F:
  35.  
  36. ------------------------------------------------------------------
  37.  
  38. This program helps take some of the pain out of booting up into netware.
  39. One of the problems on a network is that some people are running
  40. different verstion of dos that others. Some have EMS memory and some
  41. have XMS memory. Novell provides several shells for different computer
  42. environments. BestNet helps choose the best net for your machine to
  43. load. Thus making installation easier.
  44.  
  45. Here's how you use it. Your AUTOEXEC.BAT might look like this:
  46.  
  47. @Echo Off
  48. IPX
  49. SET COMSPEC=X:COMMAND.COM
  50. BESTNET
  51. %NET%
  52. SET NET=
  53. F:
  54. LOGIN
  55.  
  56. The SET COMSPEC command has nothing to do with BestNet. It's a trick I
  57. learned that eliminates DOS going back to the floppy for command.com.
  58. Setting the comspec before loading the net shell fixes this problem.
  59.  
  60. Another trick is to create a file called LOADNET.BAT as follows:
  61.  
  62. BESTNET
  63. %NET%
  64. SET NET=
  65. F:
  66. STARTUP
  67.  
  68. AUTOEXEC.BAT ----> LOADNET.BAT ----> STARTUP.BAT
  69.  
  70. The idea here is that each AUTOEXEC.BAT on the net ends with the command
  71. LOADNET. This causes the AUTOEXEC to jump to LOADNET. LOADNET is exactly
  72. the same for all workstations. You also put LOADNET in the LOGIN
  73. directory. LOADNET loads the best shell and then branches to a batch
  74. file called STARTUP which does your login.
  75.  
  76. The reason for 3 batch files is as follows. If you are booting from a
  77. boot rom, you can have different AUTOEXEC for each user. These branch to
  78. LOADNET which makes the transition from rom to the login directory. As
  79. soon as the net shell loads the rom disappears and the LOADNET file
  80. continues in the login directory.
  81.  
  82. The idea is that LOADNET never changes. You can change the AUTOEXEC and
  83. the STARTUP bat files any way you want and still make a smooth
  84. transition from your boot drive to the network.
  85.  
  86.  
  87.    Other Computer Tyme Software:
  88.    ======================================================
  89.  
  90.    The Computer Tyme Dos ToolBox... Makes DOS easier for the novice,
  91.    more powerful for the professional.
  92.  
  93.    DIRECTORY MASTER is a powerful hard disk managment utility. It
  94.    brings up your hard disk files and allows you to mark selected
  95.    files so you can copy them, delete them, or move them. It also
  96.    allows you to rename files, change dates, and change attributes.
  97.    You can also run programs or set up your function keys to run
  98.    programs on selected files.
  99.  
  100.    DOLIST makes being at DOS easier. It gives you full line editing,
  101.    like a word processor, for your commands. It also stores commands
  102.    so that you can re-execute them. It remembers subdirectories and
  103.    allows you to go back to them by pressing the TAB key. It offers
  104.    programmable function keys, DOS extensions, multiple execution,
  105.    and many more features you have got to have.
  106.  
  107.    PICK DIRECTORY allows you to move through the directory system by
  108.    displaying a graphic tree and letting you use your arrow keys to
  109.    move around. It also lets you create, delete, rename, and hide
  110.    directories.
  111.  
  112.    TEDIT (from SemWare) is a powerful, easy to use full screen
  113.    editor.
  114.  
  115.    MARXTSR is a set of memory and TSR management utilities that let
  116.    you load and unload TSRs (Terminate and stay resident programs)
  117.    from memory. Utilities to list menory allocation and turn TSR's
  118.    on and off.
  119.  
  120.    And many more ... Also includes is D, a fancy directory listing
  121.    program; WHEREIS, for finding stuff on you hard disk, SORT, MOVE,
  122.    FIND, FREE, PIPEDIR, VERSION, and many more.
  123.  
  124.    The Dos Toolbox sells for $59.95.
  125.  
  126.    ======================================================
  127.  
  128.    We are also selling QEdit from Semware. QEdit is a professional
  129.    editor from Semware. TEdit is a mini version of QEdit. If you
  130.    like TEdit, You'll love QEdit.
  131.  
  132.    1-800-548-5353 Order Line
  133.    1-417-866-1222 Voice Line
  134.    1-417-866-1665 BBS Data line * 1200/2400 * 8N1 * ANSI or VT100
  135.  
  136.    MarxMenu comes with MarxEdit and MARXTSR manager and a few goodies out of
  137.    the DOS ToolBox. The Network Survival Kit is a network version of almost
  138.    every utility I've ever written. It's sold on a per fileserver basis.
  139.  
  140.                  _______
  141.             ____|__     |               (tm)
  142.          --|       |    |-------------------
  143.            |   ____|__  |  Association of
  144.            |  |       |_|  Shareware
  145.            |__|   o   |    Professionals
  146.          -----|   |   |---------------------
  147.               |___|___|    APPROVED VENDOR
  148.  
  149.       ==========================================
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.         Make Check            Computer Tyme            Order Form 2.26
  158.         Payable To:    411 North Sherman Suite 300
  159.                           Springfield Mo. 65802
  160.                      (417) 866-1222  (800) 548-5353
  161.  
  162.         Please send me Computer Tyme Software.
  163.  
  164.         =============================================================
  165.  
  166.         Name:        ________________________________________________
  167.  
  168.         Address:     ________________________________________________
  169.  
  170.         City/St/Zip: ________________________________________________
  171.  
  172.         Phone:       ________________________________________________
  173.  
  174.         Computer:    ________________________________________________
  175.  
  176.         Got From:    ________________________________________________
  177.  
  178.         Comments:    ________________________________________________
  179.  
  180.                      ________________________________________________
  181.  
  182.  
  183.         Single User Version:
  184.  
  185.         ___ Enclosed is $59.95 for MarxMenu.
  186.  
  187.         ___ Enclosed is $59.95 for the DOS ToolBox.
  188.  
  189.         ___ Enclosed is $99.95 for MarxMenu, the Dos ToolBox and DM3.
  190.  
  191.  
  192.         Network Version (1 per file server):
  193.  
  194.         ___ Enclosed is $495 for Network Survival Kit.
  195.  
  196.         ___ Add $3.00 for Shipping and Handling.
  197.  
  198.         ___ I need 3 1/2 Inch Media.
  199.  
  200.  
  201.         Credit Card Number: _______________ Expiration Date: ________
  202.  
  203.         Signature: __________________________________________________
  204.  
  205.         Master Card __   Visa __   Discover __
  206.  
  207.                     * We do not take American Express *
  208.  
  209.         =============================================================
  210.  
  211. Since the article about this program appeared in LAN TIMES, I've decided
  212. to copy a few paragraphs about logging in and logging out of NetWare
  213. that are out of my MarxMenu manual. This may help you solve a lot of
  214. other problems with NetWare. MarxMenu can be used to completely replace
  215. Novell login scripts!
  216.  
  217.  
  218. NOVELL USERS:
  219.  
  220. Novell is the most popular network on the market. We have added many
  221. enhancements for Novell networks to support things like logging in and
  222. logging out, drive mapping, group support, software metering, and status
  223. information.
  224.  
  225. Although Novell is a high quality solid product it has its own
  226. "Personality" and many undocumented features otherwise known as bugs.
  227. Most people who are having trouble with MarxMenu under Novell are really
  228. having trouble with Novell. Quite frankly, we do more Novell support
  229. than we do MarxMenu support.
  230.  
  231. Having said that, I own two Novell networks. One at the lab and one at
  232. home and I love my networks. But, I have spent hundreds of hours
  233. learning all the tricks. And to save you a phone call, and me a lot of
  234. time, I've decided to share these tricks here in my manual.
  235.  
  236. Some of these tricks are from the Great Network Gurus themselves who are
  237. so advanced that they no longer exist in physical form. These people
  238. live in another dimension of total mental existence and can only be
  239. reached my modem. Some of them hang out on Compuserve.
  240.  
  241. I therefore strongly recommend that if you are a serious Novell user
  242. that you join Compuserve and hang out in the Novell section. And just
  243. because not everyone on Compuserve is a real person doesn't mean that
  244. you should feel uncomfortable asking them any question about your
  245. network that you need to ask.
  246.  
  247. LOGGING IN WITH MARXMENU
  248.  
  249. If there is any one thing that's trickier than logging out of a Novell
  250. network, is logging in. I have spent MANY hours struggling with Novell
  251. trying to get it right and I have finally figured it out. Much of this
  252. comes from the Novell gurus who hang out on Compuserve and know
  253. everything there is to know about Novell.
  254.  
  255. The first thing you need to do is make up your mind that you are going
  256. to do it right. The technique here might seem somewhat cumbersome, but
  257. it works well and will keep you out of trouble.
  258.  
  259. MarxMenu has the ability to log you into a network, map your drives, and
  260. set your environment strings without having to touch a Novell utility to
  261. do so. MarxMenu can completely eliminate the need for Novell login
  262. scripts. The advantage to using MarxMenu in the login is that you have
  263. the power of 500 commands to work with instead of just 25 or so.
  264.  
  265. THE CONFIG.SYS FILE
  266.  
  267. The place to start is the place where DOS start when DOS boots. You MUST
  268. create a CONFIG.SYS file on your boot disk. The CONFIG.SYS tells DOS how
  269. many files and buffers to create, what device drivers to load, and the
  270. size of the Master Environment.
  271.  
  272. Unless you are using special drivers, BUFFERS=40 and FILES=40 is a good
  273. place to start. STACKS 0,0 will gain you an extra 3k of ram. But the
  274. most important command is the shell statement. A CONFIG.SYS file might
  275. look like this:
  276.  
  277.  SHELL=COMMAND.COM /P /E:400
  278.  BUFFERS=40
  279.  FILES=40
  280.  DEVICE=ANSI.SYS
  281.  
  282. This sets up enough environment space to allow MarxMenu and DOS SET
  283. commands to work properly. You will also want to load any other device
  284. drivers like QEMM386.SYS or 386MAX.SYS to take advantage of other
  285. features of your computer. If you don't know about CONFIG.SYS files,
  286. read the DOS manual.
  287.  
  288. Note: If you don't have a local hard disk and are booting from a floppy
  289. drive, set BUFFERS=4. If you are booting from a diskless workstation,
  290. set BUFFERS=1. BUFFERS are used for local drives only and have no effect
  291. on network drives. You save 1k of memory for every 2 buffers you don't
  292. use.
  293.  
  294. THE AUTOEXEC.BAT FILE
  295.  
  296. After the CONFIG.SYS is loaded the AUTOEXEC.BAT runs next. Here you load
  297. up your TSRs and network drivers. There are some important tricks to be
  298. used here as well.
  299.  
  300. First of all, never load your network shell from your AUTOEXEC.BAT file.
  301. Always have it branch to another batch file called LOADNET to load the
  302. network shell. Use the autoexec.bat only to load special TSRs and the
  303. IPX. An autoexec.bat might look like this:
  304.  
  305.  @Echo Off
  306.  Cls
  307.  IPX
  308.  SET NET=NET4.COM
  309.  SET COMSPEC=X:COMMAND.COM
  310.  LOADNET
  311.  
  312. The two SET commands are very important. The first sets a variable
  313. called NET to NET4.COM. This will be used later in LOADNET.BAT. By using
  314. this variable, you can have users running many different versions of DOS
  315. and still use the same LOADNET.BAT file. You could also use a command
  316. SET NET=LOADHI EMSNET4.EXE to take advantage of advanced memory manager
  317. software.
  318.  
  319. Another trick is to run BESTNET from the Network Survival Kit. BestNet
  320. will automatically pick the best network shell and set the NET
  321. environment variable for you. You would use the command BESTNET instead
  322. of SET NET=NET4.COM in the AUTOEXEC.BAT file.
  323.  
  324. The SET COMSPEC=X:COMMAND.COM is important if you are booting off of
  325. either a floppy drive or a diskless workstation. This assumes that X:
  326. will eventually be mapped to a directory on the network that has a valid
  327. COMMAND.COM in it.
  328.  
  329. It is important to set the comspec BEFORE loading your NET shell. This
  330. prevents a problem where Netware wants to go back to the boot disk even
  331. after you change the comspec. I don't know why this works but it does.
  332. Trust Me. If you are going to use COMMAND.COM on drive C:, ignore this
  333. paragraph.
  334.  
  335. Now we go to the LOADNET.BAT file.
  336.  
  337.  @Echo Off
  338.  %NET%
  339.  SET NET=
  340.  F:
  341.  STARTUP
  342.  
  343. The big concept behind LOADNET is that this file is NEVER CHANGED. You
  344. put in on all your workstations and in the LOGIN directory and it is
  345. EXACTLY THE SAME for every computer in your network. Any changes to
  346. individual computers are made in the AUTOEXEC.BAT file.
  347.  
  348. So why is this important. Because if you are running diskless
  349. workstations what happens is that while you are booting you have a
  350. mythical drive A:. As soon as your NET shell loads this drive
  351. dissappears out from under you and you end up in F:\LOGIN. If you are
  352. running LOADNET.BAT when this happens you drop out of A:LOADNET.BAT and
  353. land in the middle of F:\LOADNET.BAT. And if your LOADNET.BAT is exactly
  354. the same file as the LOADNET.BAT in the \LOGIN directory, you take off
  355. running like the transition never occured.
  356.  
  357. Even if you are not running on diskless workstations now, you might go
  358. to it someday. It also creates good programming habits and helps you
  359. boot up cleanly.
  360.  
  361. Lets see what LOADNET does. The first line is @ECHO OFF, that's easy.
  362. The second line %NET% executes the network shell that you specified with
  363. the SET NET=NET4 command. This actually loads the network shell. The
  364. third line clears the NET variable freeing up space for other
  365. environment variables. F: switches you to drive F if you aren't there
  366. already. And finally STARTUP is the name of yet another batch file you
  367. jump to.
  368.  
  369. The STARTUP.BAT file controls what happens AFTER LOADNET runs. This file
  370. can be freely changed so that LOADNET.BAT can stay the same. This lets
  371. you modify what happens AFTER the network shell is loaded.
  372.  
  373. If you are using Novell's login program STARTUP.BAT might look like
  374. this:
  375.  
  376.  @Echo Off
  377.  LOGIN
  378.  
  379. THE SHELL.CFG FILE
  380.  
  381. The SHELL.CFG file is used by Netware to configure the Netware shell.
  382. You should read the manuals on this to see if you need any of the many
  383. option available. I suggest you at least have the following commands in
  384. your SHELL.CFG file.
  385.  
  386.  cache buffers=4
  387.  show dots=on
  388.  
  389. The master network gurus tell me that cache buffers are just a waste of
  390. memory and do not provide any better performance. Every 2 cache buffers
  391. not used saves you 1k of memory. Show dots makes your network compatible
  392. with more software utilities and should be set on unless you have some
  393. other reason not to.
  394.  
  395. USING A MENU FILE TO LOG IN
  396.  
  397. If you are going to use MarxMenu to log in instead of Novell's
  398. utilities, you will want to print out the sample file LOGIN.MNU on your
  399. MarxMenu disk and study it. Your STARTUP.BAT file might look like this:
  400.  
  401.  @Echo Off
  402.  SET BOOTUP=LOGIN
  403.  MarxMenu Login
  404.  %BOOTUP%
  405.  
  406. If MarxMenu works correctly, it will change the environment variable
  407. %BOOTUP% to point to a file that it creates. If for some reason it fails
  408. (you make a mistake in the login), it will execute Novell's login and
  409. let you get in and fix it.
  410.  
  411. One word of caution. After modifing this menu, always run MARXCOMP LOGIN
  412. to compile it. Otherwise, if you boot up into it you won't have enough
  413. access rights to recompile automatically.
  414.  
  415. THE NOVELL MENU TRANSLATOR
  416.  
  417. One nice bonus with Novell networks is that MarxMenu can translate your
  418. Novell menus to MarxMenu. This saves you the time of having to recode
  419. your system. What you do is type:
  420.  
  421.  MARXMENU NOVTRANS <menu>
  422.  
  423. This translates your Novell MNU file to a MarxMenu MRX file. Your MNU
  424. file is unchanged. MarxMenu creates a TMP file containing the source
  425. code for the MRX file. Once you are satisfied with the MarxMenu file,
  426. you just delete the MNU file and rename the TMP file to MNU and forget
  427. that you ever had a Novell menu.
  428.  
  429. Once the menu is translated you run it by typing MARX <menu> instead of
  430. MENU <menu>. MarxMenu can run Novell's menu better than Novell runs
  431. their own.
  432.  
  433.